package com.itvkt.observable;

public class TestObserver {

	public static void main(String[] args) {
		ProductList observable = ProductList.getInstance();
		TaoBaoObserver taoBaoObserver = new TaoBaoObserver();
		JingDongObserver jingDongObserver = new JingDongObserver();
		
		observable.addProductListObserver(taoBaoObserver);
		observable.addProductListObserver(jingDongObserver);
		observable.addProduct("新增产品1");
		observable.addProduct("新增产品2");
	}

}
